<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>酒店价格管理</title>
</head>
<body>
    <h1>酒店价格管理页面</h1>
    <form action="/jiudian" method="post">
        <label for="text_input">请输入数据（逗号分隔）:</label><br>
        <input type="text" id="text_input" name="text_input"><br>
        <input type="submit" value="提交">
    </form>

    <table>
        <tr>
            <th>酒店名</th>
            <th>日期</th>
            <th>房型</th>
        </tr>
        {% for row in data %}
        <tr>
            <td>{{ row['酒店'] }}</td>
            <td>{{ row['日期'] }}</td>
            <td>{{ row['内容'] }}</td>
        </tr>
        {% endfor %}
    </table>

    <button onclick="location.href='/download'">下载文件</button>
    <button onclick="location.href='/delete_data'">删除数据</button>
</body>
</html>